//
//  OvenThreeJieXi.m
//  Fragrance
//
//  Created by mark on 15/6/3.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "OvenThreeJieXi.h"

@implementation OvenThreeJieXi

+(NSMutableArray *)getOvenThreeModel:(NSData *)data
{
    NSMutableArray *array = [NSMutableArray array];
    NSError *error = nil;
    
    NSDictionary *dic = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:&error];
    NSDictionary *dic1 = [dic objectForKey:@"wancan"];
    
    NSArray *arr = [dic1 objectForKey:@"chi"];
    
    for (NSMutableDictionary *dic2 in arr) {

    OvenThreeModel *model3 = [[OvenThreeModel alloc] initWithTitle:dic2];
        
        

        [array addObject:model3];
        
    }
    return array;
    
}

@end
